#pragma once

//double t2 = 0;
//MicroSecTimer mytimer;

//mytimer.setTimer();

//t2 += mytimer.stopTimer();

//printf("%.3f ms CPU time used.\n", t2);

// #ifdef COMMON_EXPORTS
// #define COMMON_API  __declspec(dllexport)
// #else
// #define COMMON_API  __declspec(dllimport)
// #endif
#define COMMON_API

class COMMON_API MicroSecTimer
{
public:
	MicroSecTimer(void);
	~MicroSecTimer(void);
public:
	void setTimer();
	double stopTimer();
	double getTime();
private :
	double dfFreq;
	LARGE_INTEGER t0;
	LARGE_INTEGER timer;
};
